<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <!-- 顶部导航栏 -->
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>

      <!-- 主要内容区域 -->
      <a-layout-content class="content">
        <div class="content-wrapper">
          <router-view />
        </div>
      </a-layout-content>

      <!-- 底部版权信息 -->
      <GlobalFooter />
    </a-layout>
  </div>
</template>

<script setup lang="ts">
import GlobalHeader from '@/components/GlobalHeader.vue'
import GlobalFooter from '@/components/GlobalFooter.vue'
</script>

<style scoped>
#basicLayout {
  background: #f0f2f5;
  min-height: 100vh;
}

.header {
  padding: 0;
  background: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.content {
  padding: 24px 16px 80px;
  background: #f0f2f5;
  min-height: calc(100vh - 64px - 60px);
}

.content-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
  min-height: 500px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    padding: 16px 8px 80px;
  }

  .content-wrapper {
    padding: 16px;
    border-radius: 0;
    margin: 0 -8px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 12px 4px 80px;
  }

  .content-wrapper {
    padding: 12px;
    margin: 0 -4px;
  }
}
</style>
